package day04_factory_method.product;

/**
 * @author Koizumi Sinya
 * @date 2018/11/07. 20:35
 * @edithor
 * @date
 */
public class IDCard extends Product {
    private String name;

    public IDCard(String name) {
        this.name = name;
        System.out.println("new ID " + this.name + ".");
    }

    @Override
    public void use() {
        System.out.println("the ID " + this.name + " is use.");
    }

    public String getName() {
        return this.name;
    }
}
